package com.cskaoyan.service;

import com.cskaoyan.bean.BasePageData;
import com.cskaoyan.bean.BaseParam;
import com.cskaoyan.bean.Coupon;

/**
 * Description
 *
 * @author Zhangfei
 * @date Created on 2021/10/19
 */
public interface CouponService {
    BasePageData list(String name, Integer type, Integer status, BaseParam param);

    Coupon read(Integer id);

    BasePageData getUserByCouponId(Integer userId, Integer couponId,Integer status, BaseParam param);

    Integer delete(Coupon coupon);

    Coupon create(Coupon coupon);

    Coupon update(Coupon coupon);

    Integer receive(Integer couponId, Integer userId);

    BasePageData mylist(Integer userId, Integer status, BaseParam param);

    Integer exchange(Integer userId,String code);

    BasePageData selectlist(Integer userId, Integer cartId);
}
